<?php 
/* SVN FILE: $Id$ */
/* Application Test cases generated on: 2009-11-08 14:36:01 : 1257690961*/
App::import('Model', 'Application');

class ApplicationTestCase extends CakeTestCase {
	var $Application = null;
	var $fixtures = array('app.application', 'app.student', 'app.job');

	function startTest() {
		$this->Application =& ClassRegistry::init('Application');
	}

	function testApplicationInstance() {
		$this->assertTrue(is_a($this->Application, 'Application'));
	}

	function testApplicationFind() {
		$this->Application->recursive = -1;
		$results = $this->Application->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Application' => array(
			'id'  => 1,
			'student_id'  => 1,
			'job_id'  => 1,
			'create_date'  => '2009-11-08 14:36:01',
			'expire_status'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>